<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看提现</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<div class="x-body">
    <table class="layui-table">
        <thead>
        <!--<tr>-->
        <!--<th>标题</th>-->
        <!--<th>详情</th>-->
        <!--</tr>-->
        </thead>
        <tbody>
        <tr>
            <td>编号:</td>
            <td>${model.sid!}</td>
        </tr>
        <tr>
            <td>提现金额:</td>
            <td>${model.settPreMoney!}</td>
        </tr>
        <tr>
            <td>手续费:</td>
            <td>${model.settSubMoney!0.00}</td>
        </tr>
        <tr>
            <td>打款金额:</td>
            <td>${model.settFinalMoney!}</td>
        </tr>
        <tr>
            <td>提现时间:</td>
            <td>${model.createTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
        <tr>
            <td>状态:</td>
            <td>
                <%if(model.status! == 2){%>
                已打款
                <%}else if(model.status! == 1){%>
                等待打款
                <%}else if(model.status! == 3){%>
                打款失败
                <%}else if(model.status! == 4){%>
                已取消打款
                <%}%>
            </td>
        </tr>
        <tr>
            <td>系统返回:</td>
            <td>${model.settError!}</td>
        </tr>
        <tr>
            <td>打款时间:</td>
            <td>${model.okTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
        <tr>
            <td>打款流水:</td>
            <td>${model.tranNo!}</td>
        </tr>
        <tr>
            <td>用户ID:</td>
            <td>${user2.id!}</td>
        </tr>
        <tr>
            <td>提现方式:</td>
            <td>
                <%if(user2.zspaytype! ==1 ){%>
                    微信
                <%}else if(user2.zspaytype! ==2){%>
                    支付宝
                <%}else if(user2.zspaytype! ==3){%>
                    QQ
                <%}else{%>
                    银行卡
                <%}%>
            </td>
        </tr>
        <tr>
            <td>提现账号:</td>
            <td>${user2.user!}</td>
        </tr>
    </table>
    <div style="height: 20px;"></div>
    <div class="layui-inline layui-col-md4" >
        <div class="layui-input-block">
            <button class="layui-btn layui-col-md-offset4" onclick="cededce(${model.id!});"
            <%if(model.status! == 2){%>
            disabled>已打款
            <button class="layui-btn layui-btn-warm" onclick="cededce2('${model.id!}',4)">设为取消打款</button>
            <button class="layui-btn layui-col-md-offset4" onclick="cededce2('${model.id!}',2);">设为已打款</button>
            <%}else if(model.status! == 1){%>
            >确认打款
            <button class="layui-btn layui-col-md-offset4" onclick="cededce2('${model.id!}',2);">设为已打款</button>
            <button class="layui-btn layui-btn-warm" onclick="cededce2('${model.id!}',4)">设为取消打款</button>
            <%}else if(model.status! ==4){%>
                disabled>已取消打款
            <button class="layui-btn layui-col-md-offset4" onclick="cededce(${model.id!});">重新打款 </button>
            <button class="layui-btn layui-col-md-offset4" onclick="cededce2('${model.id!}',2);">设为已打款</button>
            <%}else if(model.status! ==3){%>
            >重新打款
            <button class="layui-btn layui-btn-warm" onclick="cededce2('${model.id!}',4)">设为取消打款</button>
            <button class="layui-btn layui-col-md-offset4" onclick="cededce2('${model.id!}',2);">设为已打款</button>
            <%}%>
            </button>
            <button class="layui-btn layui-btn-warm" onclick="x_admin_close()">关&nbsp;&nbsp;闭</button>
        </div>
    </div>
</div>
</body>
<script>
    $(function () {
        layui.use(['form', 'layer'], function () {
            $ = layui.jquery;
        });
    });

    function cededce(id) {
        $.post("/admin/sett/update",
            {"id": id},
            function (data) {
                layer.alert(data.msg, {icon: 6}, function () {
                    window.parent.location.reload();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                });
            }, "json");
    }

    function cededce2(id, type) {
        $.post("/admin/sett/update2",
            {"id": id, "type": type},
            function (data) {
                layer.alert(data.msg, {icon: 6}, function () {
                    window.parent.location.reload();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                });
            }, "json");
    }
</script>
</html>